home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / ABSTRACT.ZIP / PASS-3.POV < prev   
Encoding:
Text File  |  1997-01-04  |  6.0 KB  |  131 lines

  1.  
  2. //--------------------------------------------------------->
  3. //- "abstract" -------------------------------------------->
  4. //--------------------------------------------------------->
  5. //- pass-3.pov -------------------------------------------->
  6. //--------------------------------------------------------->
  7. //- created by ptdawson@voicenet.com ---------------------->
  8. //--------------------------------------------------------->
  9. //- super sloppy!!! --------------------------------------->
  10. //--------------------------------------------------------->
  11.  
  12.         #version 3.0
  13.         global_settings{assumed_gamma 2.2 max_trace_level 20}
  14.         #include"colors.inc"#include"textures.inc"#include"metals.inc"
  15.         #default{finish{Shiny}}background{White}
  16.  
  17.         camera{location<0,75,-190> look_at <0,50,0> }
  18.         light_source{<0,40,-300> White shadowless atmosphere off}
  19.         light_source{<0,400,0> White shadowless atmosphere off}
  20.  
  21. //- atmosphere -------------------------------------------->
  22.  
  23.         atmosphere{type 1 samples 1 distance 20000 scattering 0.3
  24.         aa_level 3 aa_threshold 0.1 jitter 0.2}
  25.  
  26. //- visible spotlight gizmo ------------------------------->
  27.  
  28.         #declare TinCan=union{cylinder{<0,0,0><0,5,0>,1 open}
  29.         sphere{<0,0,0>,1}#declare A=0 #while(A<=5)
  30.         torus{1,0.1 pigment{Gray60}translate y*A}
  31.         #declare A=A+1 #end pigment{SteelBlue}finish{F_MetalC}}
  32.  
  33. //- five spotlights --------------------------------------->
  34.  
  35.         #declare TEMP_LOC=<-20,55,-157>#declare TEMP_ROT=<80,-16,0>
  36.         light_source{<0,3,0>color rgbf<0,1,1,0.999>spotlight point_at
  37.         <0,50,0>rotate TEMP_ROT translate TEMP_LOC radius 1 falloff 18
  38.         tightness 90 atmospheric_attenuation on}
  39.         object{TinCan rotate TEMP_ROT translate TEMP_LOC}
  40.         cylinder{<0,0,0><0,-20,0>,0.5 texture{T_Gold_5A}translate TEMP_LOC}
  41.  
  42.         #declare TEMP_LOC=<-10,55,-157>#declare TEMP_ROT=<80,-8,0>
  43.         light_source{<0,3,0>color rgbf<0,2,0,0.999>spotlight point_at
  44.         <0,50,0>rotate TEMP_ROT translate TEMP_LOC radius 1 falloff 18
  45.         tightness 90 atmospheric_attenuation on}
  46.         object{TinCan rotate TEMP_ROT translate TEMP_LOC}
  47.         cylinder{<0,0,0><0,-20,0>,0.5 texture{T_Gold_5A}translate TEMP_LOC}
  48.  
  49.         #declare TEMP_LOC=<0,55,-157>#declare TEMP_ROT=<80,0,0>
  50.         light_source{<0,3,0>color rgbf<1,1,0,0.999>spotlight point_at
  51.         <0,50,0>rotate TEMP_ROT translate TEMP_LOC radius 1 falloff 18
  52.         tightness 90 atmospheric_attenuation on}
  53.         object{TinCan rotate TEMP_ROT translate TEMP_LOC}
  54.         cylinder{<0,0,0><0,-20,0>,0.5 texture{T_Gold_5A}translate TEMP_LOC}
  55.  
  56.         #declare TEMP_LOC=<10,55,-157>#declare TEMP_ROT=<80,8,0>
  57.         light_source{<0,3,0>color rgbf<2,0,0,0.999>spotlight point_at
  58.         <0,50,0>rotate TEMP_ROT translate TEMP_LOC radius 1 falloff 18
  59.         tightness 90 atmospheric_attenuation on}
  60.         object{TinCan rotate TEMP_ROT translate TEMP_LOC}
  61.         cylinder{<0,0,0><0,-20,0>,0.5 texture{T_Gold_5A}translate TEMP_LOC}
  62.  
  63.         #declare TEMP_LOC=<20,55,-157>#declare TEMP_ROT=<80,16,0>
  64.         light_source{<0,3,0>color rgbf<1,0,1,0.999>spotlight point_at
  65.         <0,50,0>rotate TEMP_ROT translate TEMP_LOC radius 1 falloff 18
  66.         tightness 90 atmospheric_attenuation on}
  67.         object{TinCan rotate TEMP_ROT translate TEMP_LOC}
  68.         cylinder{<0,0,0><0,-20,0>,0.5 texture{T_Gold_5A}translate TEMP_LOC}
  69.  
  70. //- the bird ---------------------------------------------->
  71.  
  72.         #declare THING=sphere{0,0.1}#declare BIRD=merge{
  73.         #declare X=0.01 #while(X<4)#declare Y=(sin(X)/2)
  74.         #declare SCALE=<1,1,(5-X)>#if(X=0.01)#declare SCALE=<3,3,12> #end
  75.         object{THING scale SCALE translate<X,Y,0>}
  76.         object{THING scale SCALE translate<-X,Y,0>}
  77.         #declare X=X+0.10 #end sphere{<0,0,0>,0.2
  78.         scale<1,1.2,2>translate<0,0.25,-0.99>}
  79.         cone{<0,0,0>,0.12<0,0,-0.75>,0.0 scale<0.2,1,1>
  80.         rotate x* 5 translate<0,0.25,-0.99>}
  81.         cone{<0,0,0>,0.12<0,0,-0.75>,0.0 scale<0.2,1,1>
  82.         rotate x*-5 translate<0,0.25,-0.99>}
  83.         #declare A=-30 #while(A<=30)sphere{0,0.1 scale<1,1,6>
  84.         translate z*0.6 rotate y*A translate z*1}
  85.         #declare A=A+2 #end pigment{White}finish{F_MetalE}}
  86.         object{BIRD scale<29,29,29>rotate<10,-25,0>translate<1,70,-80>}
  87.  
  88. //- floor ------------------------------------------------->
  89.  
  90.         height_field{gif"plasma3.gif"smooth
  91.         translate<-0.5,0,-0.5>scale<380,30,200>translate y*-30
  92.         texture{pigment{checker Yellow,Maroon scale 30
  93.         rotate y*-20 turbulence 0.01}normal{bumps 0.2 scale 4}
  94.         finish{F_MetalD}}hollow}
  95.  
  96. //- new back wall and white plane ------------------------->
  97.  
  98.         box{<0,0,0><1,1,0.01>texture{pigment{image_map{tga
  99.         "pass-2.tga" once interpolate 2}}finish{Shiny}}
  100.         translate<-0.5,-0.5,0>rotate y*180rotate x*180
  101.         translate y*0.1 scale<80*4.9,60*4.9,1>translate z*90}
  102.  
  103.         plane{z,90.1 pigment{White}hollow}
  104.  
  105. //- the sky pyramids -------------------------------------->
  106.  
  107.         #declare Pyramid=mesh{
  108.         triangle{<-20,0,0><0,100,0><0,0,-20>}
  109.         triangle{<0,0,-20><0,100,0><20,0,0>}
  110.         triangle{<20,0,0><0,100,0><0,0,20>}
  111.         triangle{<0,0,20><0,100,0><-20,0,0>}
  112.         triangle{<-20,0,0><0,0,-20><20,0,0>}
  113.         triangle{<-20,0,0><0,0,20><20,0,0>}}
  114.         #declare FlipFlop=1
  115.  
  116.         #declare TEX_BOT=texture{
  117.         pigment{image_map{tga "pass-1.tga" once interpolate 2}
  118.         translate x*-0.5 scale<400,140,100>}finish{Shiny}}
  119.  
  120.         #declare TEX_TOP=texture{pigment{color rgbf<1,1,1,0.999>}
  121.         finish{F_MetalA}normal{bumps 0.1 scale 4}}
  122.  
  123.         union{#declare X=-120 #while(X<=120)
  124.         #declare FlipFlop=1-FlipFlop #if(FlipFlop=0)
  125.         object{Pyramid rotate x*180 translate<X,130,0>} #end
  126.         #if(FlipFlop=1)object{Pyramid translate<X,20,0>} #end
  127.         #declare X=X+30 #end texture{TEX_BOT}texture{TEX_TOP}}
  128.  
  129. //- bye! -------------------------------------------------->
  130.  
  131.